<template>
  <div class="common-layout">
    <el-container class="lay-container">
      <el-aside :style="{ width: $store.state.isCollapse ? '180px' : '64px' }"
        ><common-aside
      /></el-aside>
      <el-container>
        <common-header />
        <common-tag />
        <el-main class="right-main">
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import { defineComponent } from 'vue'
import CommonHeader from '../components/CommonHeader.vue'
import CommonAside from '../components/CommonAside.vue'
import CommonTag from '../components/CommonTag.vue'
export default defineComponent({
  components: {
    CommonAside,
    CommonHeader,
    CommonTag,
  },
})
</script>

<style lang="less" scoped>
.el-container {
  flex-wrap: wrap;
  align-items: flex-start;
  height: 100%;
}
.common-layout {
  height: 100%;
  .lay-container {
    flex-wrap: nowrap;
    .right-main {
      height: calc(100% - 124px) !important;
    }
  }
  & > .el-container {
    height: 100%;
    & > .el-aside {
      height: 100%;
      background: #545c64;
    }
  }
}
</style>

<!-- <template>
  <el-aside>
    <my-common-aside />
  </el-aside>
</template> -->
